home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 December
/
MACPOWER-1997-12.ISO.7z
/
MACPOWER-1997-12.ISO
/
AMUG
/
PROGRAMMING
/
Raven 1.2 Examples.sit
/
Raven 1.2 Examples
/
Quill
/
Source
/
HelpEditor.h
< prev
next >
Wrap
Text File
|
1996-11-29
|
2KB
|
92 lines
/*
* File: HelpEditor.h
* Summary: A view that knows how to edit a pane's help message.
* Written by: Jesse Jones
*
* Copyright ゥ 1996 Jesse Jones.
* For conditions of distribution and use, see copyright notice in ZTypes.h
*
* Change History (most recent first):
*
* <-> 11/24/96 JDJ Created
*/
#pragma once
#include <ZControl.h>
#include <ZListener.h>
#include "BasePaneEditor.h"
// ===================================================================================
// class CEditHelpCommand
// ===================================================================================
class CEditHelpCommand : public CBaseEditPaneCommand<TPane, SPaneInfo> {
typedef CBaseEditPaneCommand<TPane, SPaneInfo> Inherited;
//-----------------------------------
// Initialization/Destruction
//
public:
virtual ~CEditHelpCommand();
CEditHelpCommand(TPane* pane, const SPaneInfo& oldInfo, const SPaneInfo& newInfo);
//-----------------------------------
// Inherited API
//
public:
virtual void UpdatePane(const SPaneInfo& newInfo);
};
// ===================================================================================
// CHelpEditor
// ===================================================================================
class CHelpEditor : public CBasePaneEditor<TPane, SPaneInfo, CEditHelpCommand>, public MListener<SControlMessage> {
typedef CBasePaneEditor<TPane, SPaneInfo, CEditHelpCommand> Inherited;
//-----------------------------------
// Initialization/Destruction
//
public:
virtual ~CHelpEditor();
CHelpEditor(TView* superView);
//-----------------------------------
// Inherited API
//
protected:
virtual SPaneInfo GetEditorInfo() const;
virtual void SetEditorInfo(const SPaneInfo& info);
virtual void OnReanimated();
virtual void OnBroadcast(const SControlMessage& mesg);
//-----------------------------------
// TReanimator Support
//
public:
static MReanimatable* Create(MReanimatable* parent);
//-----------------------------------
// Internal API
//
protected:
virtual void TogglePanes();
//-----------------------------------
// Member data
//
public:
ResType mType;
};